| while True: |
| break |
| x = x + 1 |
| print(x) |
| if x == 100: |
| x = 10 |
| while True: |
|         break |
|     x = x + 1 |
|     print(x) |
|     if x == 100: |
| x = 10 |
| 1 | x = 10 |
| 2 | while True: |
| 3 |     print(x) |
| 4 |     x = x + 1 |
| 5 |     if x == 100: |
| 6 |         break |
| for x in range(10,101): |
| print(x) |
| for x in range(10,101): |
|     print(x) |
| 1 | for x in range(10,101): |
| 2 |     print(x) |
| print("The end") |
| while True: |
| i = input() |
| print("Enter something") |
| break |
| if i != "": |
| print("The end") |
| while True: |
|     i = input() |
|     print("Enter something") |
|         break |
|     if i != "": |
| 1 | while True: |
| 2 |     print("Enter something") |
| 3 |     i = input() |
| 4 |     if i != "": |
| 5 |         break |
| 6 | print("The end") |
| if i != "Friday": |
| while True: |
| i = input() |
| print("Enter the word 'Friday'") |
| break |
|     if i != "Friday": |
| while True: |
|     i = input() |
|     print("Enter the word 'Friday'") |
|         break |
| 1 | while True: |
| 2 |     print("Enter the word 'Friday'") |
| 3 |     i = input() |
| 4 |     if i != "Friday": |
| 5 |         break |
| break |
| print("Enter a valid number") |
| n = input() |
| while True: |
| if n.isdigit() == True: |
|         break |
|     print("Enter a valid number") |
|     n = input() |
| while True: |
|     if n.isdigit() == True: |
| 1 | while True: |
| 2 |     print("Enter a valid number") |
| 3 |     n = input() |
| 4 |     if n.isdigit() == True: |
| 5 |         break |
| print("Enter another valid number") |
| while True: |
| n2 = input() |
| if n.isdigit() == True and n2.isdigit() == True: |
| print("Enter a valid number") |
| print(n1 + n2) |
| n1 = int(n1) |
| n1 = input() |
| print("Invalid numbers") |
| n2 = int(n2) |
| break |
|     print("Enter another valid number") |
| while True: |
|     n2 = input() |
|     if n.isdigit() == True and n2.isdigit() == True: |
|     print("Enter a valid number") |
| print(n1 + n2) |
| n1 = int(n1) |
|     n1 = input() |
|     print("Invalid numbers") |
| n2 = int(n2) |
|         break |
| 1 | while True: |
| 2 |     print("Enter a valid number") |
| 3 |     n1 = input() |
| 4 |     print("Enter another valid number") |
| 5 |     n2 = input() |
| 6 |     if n.isdigit() == True and n2.isdigit() == True: |
| 7 |         break |
| 8 |     print("Invalid numbers") |
| 9 | n1 = int(n1) |
| 10 | n2 = int(n2) |
| 11 | print(n1 + n2) |
| userAttempt = input() |
| exit() |
| while True: |
| else: |
| tries = 0 |
| if tries == 3: |
| if userAttempt == "password": |
| print("You have had too many tries") |
| break |
| tries = tries + 1 |
| print("You guessed the password correctly!") |
| print("Enter a password") |
| print("That is not correct, try again") |
|   userAttempt = input() |
|         exit() |
| while True: |
|   else: |
| tries = 0 |
|     if tries == 3: |
|   if userAttempt == "password": |
|         print("You have had too many tries") |
|     break |
|     tries = tries + 1 |
| print("You guessed the password correctly!") |
|   print("Enter a password") |
|     print("That is not correct, try again") |
| 1 | tries = 0 |
| 2 | while True: |
| 3 |   print("Enter a password") |
| 4 |   userAttempt = input() |
| 5 |   if userAttempt == "password": |
| 6 |     break |
| 7 |   else: |
| 8 |     print("That is not correct, try again") |
| 9 |     tries = tries + 1 |
| 10 |     if tries == 3: |
| 11 |         print("You have had too many tries") |
| 12 |         exit() |
| 13 | print("You guessed the password correctly!") |
| print("An email has been sent to you allow you to reset your password") |
| menuInput = input("Pick a menu option") |
| break |
| elif menuInput == "3": |
| print("Pick an option:") |
| print("3)Forgot Password") |
| print("Enter your username and password") |
| if menuInput == "1": |
| print("You are into the system") |
| elif menuInput == "2": |
| print("1)Sign Up") |
| print("This is not an option") |
| break |
| break |
| while True: |
| else: |
| print("Time for you to sign up!") |
| print("2)Sign In") |
|         print("An email has been sent to you allow you to reset your password") |
|     menuInput = input("Pick a menu option") |
|         break |
|     elif menuInput == "3": |
| print("Pick an option:") |
| print("3)Forgot Password") |
|         print("Enter your username and password") |
|     if menuInput == "1": |
| print("You are into the system") |
|     elif menuInput == "2": |
| print("1)Sign Up") |
|         print("This is not an option") |
|         break |
|         break |
| while True: |
|     else: |
|         print("Time for you to sign up!") |
| print("2)Sign In") |
| 1 | print("Pick an option:") |
| 2 | print("1)Sign Up") |
| 3 | print("2)Sign In") |
| 4 | print("3)Forgot Password") |
| 5 | |
| 6 | while True: |
| 7 |     menuInput = input("Pick a menu option") |
| 8 |     if menuInput == "1": |
| 9 |         print("Time for you to sign up!") |
| 10 |         break |
| 11 |     elif menuInput == "2": |
| 12 |         print("Enter your username and password") |
| 13 |         break |
| 14 |     elif menuInput == "3": |
| 15 |         print("An email has been sent to you allow you to reset your password") |
| 16 |         break |
| 17 |     else: |
| 18 |         print("This is not an option") |
| 19 | print("You are into the system") |
| i = int(i) |
| break |
| print("Enter a number greater than 30") |
| if i.isdigit() == True: |
| while True: |
| if i > 30: |
| print("Invalid!") |
| i = input() |
|         i = int(i) |
|             break |
|     print("Enter a number greater than 30") |
|     if i.isdigit() == True: |
| while True: |
|         if i > 30: |
|     print("Invalid!") |
|     i = input() |
| 1 | while True: |
| 2 |     print("Enter a number greater than 30") |
| 3 |     i = input() |
| 4 |     if i.isdigit() == True: |
| 5 |         i = int(i) |
| 6 |         if i > 30: |
| 7 |             break |
| 8 |     print("Invalid!") |
| if i == -1: |
| print("Enter a number, enter -1 to stop") |
| i = int(i) |
| total = 0 |
| i = input() |
| else: |
| print(total) |
| while True: |
| total = total + i |
| break |
|     if i == -1: |
|     print("Enter a number, enter -1 to stop") |
|     i = int(i) |
| total = 0 |
|     i = input() |
|     else: |
| print(total) |
| while True: |
|         total = total + i |
|         break |
| 1 | total = 0 |
| 2 | while True: |
| 3 |     print("Enter a number, enter -1 to stop") |
| 4 |     i = input() |
| 5 |     i = int(i) |
| 6 |     if i == -1: |
| 7 |         break |
| 8 |     else: |
| 9 |         total = total + i |
| 10 | print(total) |
| elif i[0] == "*": |
| total = 0 |
| num = num.strip() |
| elif i[0] == "-": |
| num = i[1:] |
| elif i[0] == "/": |
| total = total * int(num) |
| print("Invalid operator") |
| total = total / int(num) |
| total = total + int(num) |
| i = input() |
| else: |
| total = total - int(num) |
| print("Output: " + str(total)) |
| while True: |
| if i[0] == "+": |
| print("Output: 0") |
|     elif i[0] == "*": |
| total = 0 |
|     num = num.strip() |
|     elif i[0] == "-": |
|     num = i[1:] |
|     elif i[0] == "/": |
|         total = total * int(num) |
|         print("Invalid operator") |
|         total = total / int(num) |
|         total = total + int(num) |
|     i = input() |
|     else: |
|         total = total - int(num) |
|     print("Output: " + str(total)) |
| while True: |
|     if i[0] == "+": |
| print("Output: 0") |
| 1 | total = 0 |
| 2 | print("Output: 0") |
| 3 | while True: |
| 4 |     i = input() |
| 5 |     num = i[1:] |
| 6 |     num = num.strip() |
| 7 |     if i[0] == "+": |
| 8 |         total = total + int(num) |
| 9 |     elif i[0] == "*": |
| 10 |         total = total * int(num) |
| 11 |     elif i[0] == "-": |
| 12 |         total = total - int(num) |
| 13 |     elif i[0] == "/": |
| 14 |         total = total / int(num) |
| 15 |     else: |
| 16 |         print("Invalid operator") |
| 17 |      |
| 18 |     print("Output: " + str(total)) |
| 19 |
| total = total + int(num) |
| print("Output: " + str(total)) |
| i = input() |
| num = "" |
| for x in range(len(i)): |
| elif operator == "-": |
| i = i + "+" #Ensure there is a calcuation at the end as well |
| if i[x] == "+" or i[x] == "-" or i[x] == "/" or i[x] == "*": |
| operator = i[x] |
| elif operator == "/": |
| total = total - int(num) |
| print("Output: 0") |
| total = total / int(num) |
| elif operator == "*": |
| total = total * int(num) |
| num = num + i[x] |
| total = 0 |
| if operator != "": |
| num = "" |
| operator = "" |
| while True: |
| elif i[x] != " ": |
| if operator == "+": |
|                     total = total + int(num) |
|     print("Output: " + str(total)) |
|     i = input() |
|             num = "" |
|     for x in range(len(i)): |
|                 elif operator == "-": |
|     i = i + "+" #Ensure there is a calcuation at the end as well |
|         if i[x] == "+" or i[x] == "-" or i[x] == "/" or i[x] == "*": |
|             operator = i[x] |
|                 elif operator == "/": |
|                     total = total - int(num) |
| print("Output: 0") |
|                     total = total / int(num) |
|                 elif operator == "*": |
|                     total = total * int(num) |
|             num = num + i[x] |
| total = 0 |
|             if operator != "": |
|     num = "" |
|     operator = "" |
| while True: |
|         elif i[x] != " ": |
|                 if operator == "+": |
| 1 | total = 0 |
| 2 | print("Output: 0") |
| 3 | while True: |
| 4 |     i = input() |
| 5 |     i = i + "+" #Ensure there is a calcuation at the end as well |
| 6 |     operator = "" |
| 7 |     num = "" |
| 8 |     for x in range(len(i)): |
| 9 |         if i[x] == "+" or i[x] == "-" or i[x] == "/" or i[x] == "*": |
| 10 |             if operator != "": |
| 11 |                 if operator == "+": |
| 12 |                     total = total + int(num) |
| 13 |                 elif operator == "*": |
| 14 |                     total = total * int(num) |
| 15 |                 elif operator == "/": |
| 16 |                     total = total / int(num) |
| 17 |                 elif operator == "-": |
| 18 |                     total = total - int(num) |
| 19 |             operator = i[x] |
| 20 |             num = "" |
| 21 |         elif i[x] != " ": |
| 22 |             num = num + i[x] |
| 23 |      |
| 24 |     print("Output: " + str(total)) |